#define  _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
void rot(char* a, int n)
{
	char b[1000] = { 0 };
	int i = 0;
	while (a[i] != '\0')
	{
		b[i] = a[i];
		i++;
	}
	int j = 0;
	for (j = n; j < i; j++)
	{
		*a = b[j];
		a++;
	}
	i = 0;
	for (i; i < n; i++)
	{
		*a = b[i];
		a++;
	}
	*a = '\0';
}
int main()
{
	int k = 0;
	char arr[] = "abcd";
	scanf("%d", &k);
	rot(arr, k);
	printf("%s", arr);
	return 0;
}